<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
th{padding:0px}
td{padding:0px}
#td td{border-bottom:1px solid #e6e6e6}
</style>

<script type="text/javascript">

window.onload = function(){

	document.getElementById("searchN").value = ${searchN};
	document.getElementById("search").value = '${search}';


}
</script>

</head> 
  
  <body>
  <div style="font-size:10pt;margin:40px auto 30px">
  	<div style="font-size:15pt;text-align:center;margin-bottom:10px"><b>회원 관리</b></div>
  	  
	<table style="width:850px;margin:auto;text-align:center;">

			<tr style="background:url('./image/table.png') repeat-x;font-size:10pt;text-align:center;vertical-align:middle;height:37px;border-top:3px solid blue;">
	      		<th>아이디</th>
				<th>이름</th>
				<th>별명</th>
				<th>주민등록번호</th>
	        	<th>전화번호</th>
	        	<th>휴대폰</th>
				<th style="width:80px">가입일</th>
				<th>삭제</th>
			</tr>

		
		<tbody style="height:25px;" id="td">
			<s:iterator value="list" status="stat">
			<tr>
				<td><s:property value="id" /></td>
				<td><s:property value="name" /></td>
				<td><s:property value="nickname" /></td><c:set value="${i.jumin2}" var="jumin2" />
				<td><s:property value="jumin1" />-${fn:substring(jumin2,0,1)}******</td>
				<td><s:property value="phone1"/>-<s:property value="phone2"/>-<s:property value="phone3"/></td>
				<td><s:property value="mobile1"/>-<s:property value="mobile2"/>-<s:property value="mobile3"/></td>
				<td><s:date name="join_date" format="yy/MM/dd"/></td>
				<td><a href="">삭제</a></td>
			</tr>	      
			</s:iterator>
				
			<s:if test="list.size() <= 0">
			<tr>
				<td colspan="8">가입자가 없습니다</td>
			</tr>
			</s:if>
			
			</tbody>
			
			

			
			<tr align="center">
	    		<td colspan="10" style="height:40px"><s:property value="pagingHtml"  escape="false" /></td>
			</tr>
    	      
			<tr>
				<td colspan="10" style="height:50px">
				<form action="" method="post">
				<select name="searchN" id="searchN">
					<option value="0">아이디</option>
					<option value="1">이름</option>
					<option value="2">휴대폰</option>
				</select>
				<s:textfield name="search" id="search" theme="simple" cssStyle="height:16px;padding:0;margin:0"/>
				<s:submit value="" theme="simple" cssStyle="background:url('/new_DTR2/image/search.gif') no-repeat;width:45px;height:22px;border:0;cursor:pointer;"/>
				<img src="/new_DTR2/image/btn_list.gif" onclick="window.location.href='MemList.go'" style="cursor:pointer;width:45px;height:22px;vertical-align:bottom;">
				</form>
				</td>
			</tr>
			

	</table>
	</div>
   </body>
</html>